﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class MasterPages_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<Catalog> l = UtilObjectData.getCatalog(1, 1);
       // List<SoftwareDTO> soft = UtilObjectData.selectTop5(5,1, 1, true, true, false, false, false);
      

    }
    protected void ODSListCatalog_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        int b = 0;
    }
    protected void lvCatalog_SelectedIndexChanged(object sender, EventArgs e)
    {
        MultiViewLeftNav.ActiveViewIndex = int.Parse(((RadioButton)sender).ToolTip);
    }
    protected void ListView3_DataBinding(object sender, EventArgs e)
    {

    }
    protected void ListView3_ItemDataBound(object sender, ListViewItemEventArgs e)
    {
       
        //if (e.Item.ItemType == ListViewItemType.DataItem)
        //{
        //    BulletedList blist = (BulletedList)e.Item.FindControl("childList");
        //    ListViewDataItem item = e.Item as ListViewDataItem;
        //    Catalog catalog = (Catalog)item.DataItem;           
        //    if (blist != null)
        //    {
        //        blist.DataSource = catalog.Childs;
        //        blist.DataBind();
        //        blist.DataTextField = "Name";
        //        blist.DataValueField = "IdCatalog";
        //    }
        //}
        //int c = 0;
        
    }
    protected void childCatalog_Click(object sender, BulletedListEventArgs e)
    {
        BulletedList blist = (BulletedList)sender;
        int catalogID = int.Parse(blist.Items[e.Index].Value);
    }    
   
}